<template>
	<view class="container">
		<view class="content">
			<text style="font-weight: 600;margin-bottom: 10px;display: block;">{{list.code}}</text>
			<uni-list>
				<uni-list-item  title="产品类型" :rightText="list.type"></uni-list-item>
				<uni-list-item  title="型号" :rightText="list.model"></uni-list-item>
				<!-- <uni-list-item  title="合同编号" :rightText="list.contractNumber"></uni-list-item> -->
				<!-- <uni-list-item  title="频率" :rightText="list.frequency"></uni-list-item>
				<uni-list-item  title="额定电压" :rightText="list.ratedVoltage"></uni-list-item>
				<uni-list-item  title="额定电流" :rightText="list.ratedCurrent"></uni-list-item>
				<uni-list-item  title="执行标准" :rightText="list.standard"></uni-list-item> -->
				<uni-list-item  title="额定容量" :rightText="list.ratedCapacity"></uni-list-item>
				<uni-list-item  title="额定电压比" :rightText="list.ratedVoltageRatio"></uni-list-item>
				<uni-list-item  title="额定频率" :rightText="list.ratedFrequency"></uni-list-item>
				<uni-list-item  title="联结组标号" :rightText="list.joinGroupLabel"></uni-list-item>
				<uni-list-item  title="冷却方式" :rightText="list.typeOfCooling"></uni-list-item>
			</uni-list>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '登录适配',
				list: {},
			}
		},
		created() {
			this.getList()
	
		},
		methods: {
			getList() {
				console.log(this.$store.getters.productId)
				this.request({
					'url': '/wx/product/info/'+this.$store.getters.productId,
					'method': 'get',
				}).then(res => {
					console.log(res)
					if (res && res.code == 200) {
						this.list = res.info
					}
				}).catch(err => {
	
				})
			}
	
		}
	}
</script>

<style>
	.container{
		padding: 15px;
	}
	.content{
		background-color: #fff;
		border-radius: 10px;
		padding: 15px;
		box-shadow: 0px 0px 10px #e2dede;
	}
	.uni-list-item__content{
		min-width: 80px;
	}
	.content .uni-list-item__content-title{
		color: #999;
		
	}
	.content .uni-list-item__extra-text{
		color: #3b4144;
		/* font-size: 14px; */
		text-align: right;
	}
	.uni-list-item__content-title{
		font-size: 16px!important;
	}
	.uni-list-item__extra-text{
		font-size: 14px!important;
	}
</style>